package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.ExpertScoring;
import org.apache.ibatis.annotations.Param;

/**
 * 专家评分Mapper接口
 * 
 * @author ruoyi
 * @date 2025-05-13
 */
public interface ExpertScoringMapper 
{
    /**
     * 查询专家评分
     * 
     * @param expertId 专家评分主键
     * @return 专家评分
     */
    public ExpertScoring selectExpertScoringByExpertId(Long expertId);

    /**
     * 查询专家评分列表
     * 
     * @param expertScoring 专家评分
     * @return 专家评分集合
     */
    public List<ExpertScoring> selectExpertScoringList(ExpertScoring expertScoring);

    /**
     * 新增专家评分
     * 
     * @param expertScoring 专家评分
     * @return 结果
     */
    public int insertExpertScoring(ExpertScoring expertScoring);

    /**
     * 修改专家评分
     * 
     * @param expertScoring 专家评分
     * @return 结果
     */
    public int updateExpertScoring(ExpertScoring expertScoring);

    /**
     * 删除专家评分
     * 
     * @param expertId 专家评分主键
     * @return 结果
     */
    public int deleteExpertScoringByExpertId(Long expertId);

    /**
     * 批量删除专家评分
     * 
     * @param expertIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteExpertScoringByExpertIds(String[] expertIds);

    /**
     * 根据三个id查询是否已经维护过数据
     * @param aLong
     * @param userId
     * @param suppilerId
     * @return
     */
    public int selectDataByIds(@Param("aLong") Long aLong, @Param("userId") Long userId, @Param("suppilerId") Long suppilerId);

    /**
     * 根据三个id删除已经维护过数据
     * @param aLong
     * @param userId
     * @param suppilerId
     */
    public void deleteDataByIds(@Param("aLong") Long aLong, @Param("userId") Long userId, @Param("suppilerId") Long suppilerId);

    List<ExpertScoring> selectByItemId(Long itemId);
}
